import { createApp } from 'vue'
import App from './App.vue'
import router from './router/router.js'
import store from './store/index'
import './assets/icons/iconfont.js'
import './assets/icons/iconfont.css'
import lazyPlugin from 'vue3-lazy' 
import load from './assets/images/loading.gif'
import err from './assets/images/error.jpg'
import 'vant/lib/index.css';
import './utils/rem'
import { Form, Field, CellGroup ,Button,Swipe, SwipeItem  ,Popup,
    Calendar,Badge,Tabbar, TabbarItem,DropdownMenu, DropdownItem,Empty ,Cell } from 'vant';
createApp(App).use(router)
.use(lazyPlugin,{
    loading: load, // 图片加载时默认图片
    error: err// 图片加载失败时默认图片
}).use(store)
.use(Form).use(Field).use(CellGroup).use(Button).use(Swipe).use(SwipeItem)
.use(Popup).use(Calendar).use(Badge).use(Tabbar).use(TabbarItem).use(DropdownMenu).use(DropdownItem).use(Cell)
.use(Empty )
.mount('#app')
